import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_ad_position",{schema:"nest-mall" } )
export class MallAdPosition {

    @PrimaryGeneratedColumn({
        type:"tinyint", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:60,
        default: () => "'",
        name:"name"
        })
    name:string;
        

    @Column("smallint",{ 
        nullable:false,
        default: () => "'0'",
        name:"width"
        })
    width:number;
        

    @Column("smallint",{ 
        nullable:false,
        default: () => "'0'",
        name:"height"
        })
    height:number;
        

    @Column("varchar",{ 
        nullable:false,
        name:"desc"
        })
    desc:string;
        
}
